/**
 * Created by lgc on 2017/10/28.
 */
import {localLogin} from '../../service'
import Cookies from 'js-cookie';
import api from '../../service/getData'
import axios from '../../http'


// initial state
const state = {
  items:[]
}

// getters
const getters = {
}
export const hello = ({ commit }) => {

}
// actions
const actions = {
  hello({ commit }){
    return new Promise((resolve, reject) => {
      axios.get(api.hello).then(response => {
        console.info(response.data);
      }).catch(error => {
        reject(error)
      })
    })
  }
}// mutations
const mutations = {

}

export default {
  state,
  getters,
  actions,
  mutations
}
